package com.zjh;

import com.zjh.bean.Student;
import com.zjh.dao.StudentDao2;
import com.zjh.util.sqlSessionUtil;
import org.apache.ibatis.session.SqlSession;

import java.util.HashMap;
import java.util.List;

/**
 * @author LiZiQiu
 * @data 2023/3/9
 */
public class Test10 {
    public static void main(String[] args) {
        SqlSession session = sqlSessionUtil.getSession();
        StudentDao2 mapper = session.getMapper(StudentDao2.class);
        HashMap map = new HashMap();
        map.put("begin",6);
        map.put("end",14);
        List<Student> students = mapper.findf(map);
        for (Student student : students) {
            System.out.println(student);
        }
        sqlSessionUtil.closeSession();

    }
}
